<?php
  include("include/session.php");
  include("include/db.php");
  include("include/paging.php"); 
  
  if(isset($_REQUEST['del_category']) && intval($_REQUEST['del_category'])){
 	
	mysql_query("DELETE FROM  software_meeting  WHERE Id = '".intval($_REQUEST['meeting_id'])."'");
	header("location:meeting.php");
	exit();
  
  }
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="css/c_energy.css" rel="stylesheet" type="text/css" />
<link href="css/logo.css" rel="stylesheet" type="text/css" />
<script src="hola_script.js" type="text/javascript"></script>
<script src="include/AjaxQuery.js" type="text/javascript"></script>
<title><?=TITLE_WEBSITE?></title>
</head>
<script type="text/javascript" language="javascript">
function approve(){
	document.sitefrm.submit();
}

</script>
<body>

 
  <form name="sitefrm" id="sitefrm" action="" method="post"> 
  	  <input type="hidden" name="action" value="approve" />
<table width="990" align="center" cellpadding="0" cellspacing="0">

    <tr>
        <td colspan="7"  align="left" valign="top" ><? require("header.php");?>       </td>
      </tr>  
	  <tr>
    <td align="center"></td>
  </tr>



     
  <tr>
    <td colspan="8" align="center" valign="top">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">

        <tr bgcolor="#FAFAFA">
        <td align="left" valign="top" >
		
		  <table width="74%" cellspacing="0" cellpadding="0">
		    <tr>
		      <td height="161" rowspan="2" align="left" valign="top" style="padding-left:15px; padding-top:26px" >
		          <? require("left.php");?>              </td>
		
				<td height="24" valign="top">
                		<table>
                            <tr>
                            	<td width="30%" >&nbsp;</td>
                                <td width="60%" align="right" valign="top" style="padding-top:25px">
                                        <ul class="site_nav_menu_buttons">
                                        <li class="no_menu_li"><span>
                                        <a href="add_meeting.php"><b>Add New Meeting</b></a>
                                        </span></li>
                                        
                                        </ul>
                                </td>
                            </tr>
	  
                        </table>
                </td>
            </tr>
		    <tr>
		      <td valign="top" style="padding-left:15px"><table width="638" cellpadding="0"  cellspacing="0" id="signInTbl" style="border:solid #cccccc 1px;">
                <tr>
                	 <td width="494" align="left" bgcolor="#373737" class="loc_search_found_term"  style="border-bottom:solid #cccccc 1px; height:30px; padding-left:10px">Meeting Link </td>		
                    <td width="494" align="left" bgcolor="#373737" class="loc_search_found_term"  style="border-bottom:solid #cccccc 1px; height:30px; padding-left:10px">Meeting Dial </td>	
                    <td width="494" align="left" bgcolor="#373737" class="loc_search_found_term"  style="border-bottom:solid #cccccc 1px; height:30px; padding-left:10px">Meeting Ids </td>	
                    <td width="494" align="left" bgcolor="#373737" class="loc_search_found_term"  style="border-bottom:solid #cccccc 1px; height:30px; padding-left:10px">Meeting Time  </td>	
                    <td width="494" align="left" bgcolor="#373737" class="loc_search_found_term"  style="border-bottom:solid #cccccc 1px; height:30px; padding-left:10px">Meeting Date  </td>	
                    <td width="494" align="left" bgcolor="#373737" class="loc_search_found_term"  style="border-bottom:solid #cccccc 1px; height:30px; padding-left:10px">Training </td>	
                    <td width="494" align="left" bgcolor="#373737" class="loc_search_found_term"  style="border-bottom:solid #cccccc 1px; height:30px; padding-left:10px">Software </td>	
                  <td width="65" align="center" bgcolor="#373737" class="loc_search_found_term"  style="border-bottom:solid #cccccc 1px">Edit</td>
                    <td width="65" align="center" bgcolor="#373737" class="loc_search_found_term"  style="border-bottom:solid #cccccc 1px">Delete</td>
				 </tr>
                <?php
				  $LanQry   = "SELECT * FROM `software_meeting`";
				  $resQuery = mysql_query($LanQry);
				  while($rowQuery = mysql_fetch_array($resQuery))
				  {	
				?>
               <tr <?=preg_match("/1$|3$|5$|7$|9$/",$i++) ? "bgcolor='#F0F0F0'" : "bgcolor='#FFFFFF'"?>>
                   <td style="padding-left:10px" ><?=$rowQuery['meeting_link'];?></td>
                   <td style="padding-left:10px" ><?=$rowQuery['meeting_dial'];?></td>
                   <td style="padding-left:10px" ><?=$rowQuery['meeting_ids'];?></td>
                   <td style="padding-left:10px" ><?=$rowQuery['meeting_time'];?></td>
                   <td style="padding-left:10px" ><?=$rowQuery['meeting_date'];?></td>
                   <td style="padding-left:10px" ><?=$rowQuery['training'];?></td>
                   <td style="padding-left:10px" ><?=$rowQuery['software'];?></td>
                   <td align="center" ><a href="edit_meeting.php?meeting_id=<?=$rowQuery['Id']?>"><img src="images/edit.png" /></a></td>
                  <td align="center" ><a href="meeting.php?meeting_id=<?=$rowQuery['Id']?>&del_category=1" onclick='confirm("Are you sure to delete this record")'><img src="images/delete.png" /></a></td>
                </tr>
                <?php
				   } 
				?>
                <tr>
                  <td align="center" bgcolor="#373737"  colspan="9" class="loc_search_found_term"  style="border-top:solid #cccccc 1px">&nbsp;</td>
               
                </tr>
              </table></td>
		      </tr>
	        </table>			</td>
        </tr>
      <tr bgcolor="#FAFAFA">
        
        <td colspan="2">&nbsp;</td>
      </tr>
    </table>	</td>
  </tr>
</table>
  </form>
</body>
</html>

